package com.huaxin.hxmodulesystem;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true) // exposeProxy = true
@MapperScan("com.huaxin.hxmodulesystem.mapper")
@EnableCaching // 启用缓存
@EnableScheduling
@ComponentScan(basePackages = {
        "com.huaxin.hxmodulesystem",
        "com.huaxin.hxredis",
        "com.hx.hxmybatisplus",
        "com.huaxin.hxswagger",
        "com.huaxin.hxjwt",
        "com.huaxin.hxjwt.entity",
        "com.huaxin.message",
        "com.huaxin.thirdpartyinterface",
        "com.huaxin.thirdpartyinterface.wechat"})
public class HxModuleSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(HxModuleSystemApplication.class, args);
    }

}
